<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePropsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('props', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->increments('props_id');
            $table->string('name')->comment('属性名称');
            $table->integer('sort',false,true)->comment('排序的序号')->default(0);
            $table->tinyInteger('disabled',false,true)->comment('是否删除 0-否 1-是')->default(0);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('props');
    }
}
